package com.le.edu.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;

/**
 * @TableName t_comment
 */
@TableName(value = "t_comment")
@Data
public class Comment extends BaseEntity implements Serializable {
    /**
     * 评论id
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long commentId;

    /**
     * 父id
     */
    private Long pid;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 课程id
     */
    private Long courseId;

    /**
     * 用户id
     */
    private Long userId;

    @TableLogic
    private String delFlag;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}